#ifndef LOGINWINDOW_H
#define LOGINWINDOW_H

#include <QMainWindow>
#include <QTcpSocket>
#include <QTimer>
#include "mainwindow.h"

QT_BEGIN_NAMESPACE
namespace Ui { class LoginWindow; }
QT_END_NAMESPACE

class LoginWindow : public QMainWindow
{
    Q_OBJECT

public:
    LoginWindow(QWidget *parent = nullptr);
    ~LoginWindow();

private slots:
    void timerFinish();
    void on_btn_login_clicked();
    void on_btn_logout_clicked();

private:
    Ui::LoginWindow *ui;
    QString login_ipAddr;
    QString login_port;
    int waitCnt;
    QTimer *time;
    QString text;
    QTcpSocket *tcpClient;
    MainWindow *main;
    void init();
};
#endif // LOGINWINDOW_H
